#include "UdpServer.h"


namespace mp_net
{
	void UdpServer::ThreadInitialization()
	{
		
	}

	void UdpServer::ThreadUpdate()
	{
		while(!TryLock()){Sleep(1);}
		
		//1- Read Operation

		//IF data socket is open
		if (m_socket.is_open())
		{
			//If data is waiting on the socket
			if (m_socket.available())
			{

			}
		}

		Unlock();
	}

	void UdpServer::ThreadShutdown()
	{
		
	}

}